package com.commons;

public class Constant {

    public enum EnumOrderState{
        未付款{
            @Override
            public int getValue() {
                return 0;
            }
        },
        已付款{
            @Override
            public int getValue() {
                return 1;
            }
        },
        已发货{
            @Override
            public int getValue() {
                return 2;
            }
        };

        public abstract int getValue();
    }

    enum  EnumAdminState
    {
        正常,
        锁定,
        删除
    }

    public static void main(String[] args) {
        EnumAdminState x = EnumAdminState.删除;
        switch (x){
            case 删除:
                break;
            case 锁定:
                break;
            case 正常:
                break;
        }
        System.out.println(EnumOrderState.已付款.getValue());
    }
}
